<?
class dbdXajaxJS extends dbdController
{
	public function doDefault()
	{
		$path = DBD_XAJAX_DIR."xajax_js".DBD_DS."xajax.js";
		$parts = pathinfo($path);
		$fp = @fopen($path, 'r');
		if (!is_resource($fp))
			throw new dbdException("Invalid path (".$path.")!");
		$this->noRender();
		header("Content-Type: application/x-javascript");
		header("Content-Length: ".filesize($path));
		fpassthru($fp);
		fclose($fp);
	}
}
?>